home *** CD-ROM | disk | FTP | other *** search
- // ================
- // BATTLEZONE SHELL
- // ================
-
-
- Exec("bzshell_multi_select.cfg");
- Exec("bzshell_multi_option.cfg");
- Exec("bzshell_multi_clientoption.cfg");
- Exec("bzshell_multi_pilot.cfg");
- Exec("bzshell_multi_vehicle.cfg");
- Exec("bzshell_multi_chat.cfg");
- Exec("bzshell_multi_join.cfg");
- Exec("bzshell_multi_name.cfg");
- Exec("bzshell_multi_team.cfg");
-
- //
- // CREATE SHELL MULTIPLAYER CONNECTION PAGE
- //
- CreateControl("ShellMulti", "WINDOW")
- {
- // inherit root window's dimensions
- Geometry("PARENTWIDTH", "PARENTHEIGHT");
-
- // set window style
- Style("TRANSPARENT", "INERT");
- //
- // CREATE THE BUTTON WINDOW
- //
- CreateControl("BUTTONS", "WINDOW")
- {
- Geometry("TOP", "LEFT");
- Style("LEFTTAB", "INERT");
- ColorGroup("MAGENTA");
- Position(20, 30);
- Size(135, 120);
- BorderSize(10);
- BevelSize(5);
- TabSize(100, 10);
- Projector(6);
- Title("Buttons");
- TitleFont("MEDIUM");
-
- //
- // create the "back" button
- //
- CreateControl("Back", "BUTTON")
- {
- //ColorGroup("MAGENTA");
-
- Geometry("LEFT", "TOP");
- Position(10, 10);
- Size(100, 0);
- BorderSize(10);
- BevelSize(5);
- Font("SMALL");
- JustifyText("CENTER");
- Text("Main Menu");
- Style("ROLLOVER", "OUTLINE");
- //Projector(0);
- Cursor("Highlight");
- NotifyParent("Button::Press", "Back");
- }
-
- //
- // create the connection setup button
- //
- CreateControl("GameOptions", "BUTTON")
- {
- //ColorGroup("MAGENTA");
- Geometry("LEFT", "TOP");
- Position(10, 40);
- Size(100, 0);
- BorderSize(10);
- BevelSize(5);
- Font("SMALL");
- JustifyText("CENTER");
- Text("Play Settings");
- Style("ROLLOVER", "RADIO", "OUTLINE");
- //Projector(7);
- Cursor("Highlight");
- NotifyParent("Button::Select", "Options");
- }
-
- //
- // handle the "back" event
- //
- OnEvent("Back")
- {
- // FadeOut();
- FadeOut("|Communications");
- FadeOut("|ShellMultiPilot");
- FadeOut("|ShellMultiVehicle");
- FadeOut("|ShellMultiJoin");
- FadeOut("|ShellMulti");
- FadeIn("|ShellMain");
- }
-
- //
- // handle the "options" event
- //
- OnEvent("Options")
- {
- FadeOut("|ShellMultiPilot");
- FadeOut("|ShellMultiVehicle");
- FadeOut("|ShellMultiJoin");
- FadeOut("|Communications");
-
- FadeIn("|ShellOption");
- }
- }
-
- OnEvent("Control::Activate")
- {
- FadeIn("|ShellMultiJoin");
- FadeIn("|ShellMulti");
- Cmd("network.seton");
- }
-
- OnEvent("Control::Deactivate")
- {
- Cmd("network.setoff");
- }
-
- OnEvent("Control::StartFadeIn")
- {
- FadeIn("|ShellMultiJoin");
- }
-
- OnEvent("Control::StartFadeOut")
- {
- FadeOut("|ShellMultiOption");
- FadeOut("|ShellMultiClientOption");
- FadeOut("|ShellMultiPilot");
- FadeOut("|ShellMultiVehicle");
- FadeOut("|ShellMultiJoin");
- FadeOut("|ShellMultiTeam");
- }
-
-
- //
- // handle the "signup" event
- //
- OnEvent("ChatEnter")
- {
- Cmd("network.chatline.entered");
- }
-
- //
- // handle the "connect" event
- //
- OnEvent("Connect")
- {
- FadeOut("|ShellMultiOption");
- FadeOut("|ShellMultiClientOption");
- FadeOut("|ShellMultiPilot");
- FadeOut("|ShellMultiVehicle");
- FadeOut("|ShellMultiJoin");
- }
-
- //
- // handle the join event
- //
- OnEvent("Join")
- {
- FadeOut("|ShellMultiOption");
- FadeOut("|ShellMultiClientOption");
- FadeOut("|ShellMultiPilot");
- FadeIn("|ShellMultiJoin");
- FadeIn("|ShellMultiVehicle");
- }
-
-
-
- //
- // handle the "pilot" event
- //
- OnEvent("Pilot")
- {
- FadeOut("|ShellMultiOption");
- FadeOut("|ShellMultiClientOption");
- FadeOut("|ShellMultiVehicle");
- FadeOut("|ShellMultiJoin");
- FadeIn("|ShellMultiPilot");
- }
-
- //
- // handle the "vehicle" event
- //
- OnEvent("Vehicle")
- {
- FadeOut("|ShellMultiOption");
- FadeOut("|ShellMultiClientOption");
- FadeOut("|ShellMultiPilot");
- FadeOut("|ShellMultiJoin");
- FadeIn("|ShellMultiVehicle");
- }
- }
-
-